<%@ page language="java" import="java.util.*" import="java.io.*" contentType="text/html;charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
  <% 
   
  response.setContentType("text/plain"); 
  response.setHeader("Content-Disposition", "attachment; filename=stu.txt");
  try 
     { 
       	PrintWriter out2=response.getWriter(); 
       	out2.println("学号\t姓名\t平时成绩\t考试成绩\t期评"); 
       	out2.println("S001\t王小明\t87\t65\t=round(C2*0.3+D2*0.7,0)"); 
       	out2.println("S002\t周丹\t77\t87\t=round(C3*0.3+D3*0.7,0)"); 
        out2.println("S003\t吴昕\t91\t86\t=round(C4*0.3+D4*0.7,0)"); 
     }
     catch(Exception e) 
     { 
    	out.print("出错"+e);
     }        
   %>
</body>
</html>